export const setUser = (state, user) => {
  state.username = user.username || ''
  state.userId = user.userId || ''
}

export const setUsername = (state, username) => {
  state.username = username;
}

export const setEducationList = (state, educationList) => {
  state.educationList = educationList || []
}

export const setGradeList = (state, gradeList) => {
  state.gradeList = gradeList || []
}

export const logout = (state) => {
  state.userId = ''
}